import sys
import time
import os

mapnum = sys.argv[1]
os.system('javac *.java')
time.sleep(.5)
os.system('java -jar tools/PlayGame.jar maps/map' + str(mapnum) + '.txt 1000 200 log.txt "java WhatBot" "java -jar example_bots/RageBot.jar" | java -jar tools/ShowGame.jar')
#os.system('java -jar tools/PlayGame.jar maps/map' + str(mapnum) + '.txt 1000 1000 log.txt "java WhatBot" "java -jar example_bots/DualBot.jar" > temp.txt')